package cn.geminis.lowcode.compiler.code;

import cn.geminis.lowcode.compiler.util.JdkTreeMakerUtils;
import com.sun.source.tree.ExpressionTree;
import lombok.RequiredArgsConstructor;

/**
 * @author puddi
 */
@RequiredArgsConstructor
public class LcIdent extends AbstractExpression<ExpressionTree> {
    private final String expression;

    @Override
    protected ExpressionTree createJdkTree() {
        return (ExpressionTree) JdkTreeMakerUtils.select(expression);
    }

}
